package org.jeecg.common.modules.patient.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: patient
 * @Author: jeecg-boot
 * @Date:   2020-08-19
 * @Version: V1.0
 */
@Data
@TableName("patient")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="patient对象", description="patient")
public class Patient implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**关联微信用户id*/
	@Excel(name = "关联微信用户id", width = 15)
    @ApiModelProperty(value = "关联微信用户id")
    private String wxUserinfoId;
	/**患者姓名*/
	@Excel(name = "患者姓名", width = 15)
    @ApiModelProperty(value = "患者姓名")
    private String name;
	/**手机号*/
	@Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private String mobile;
	/**患者头像*/
	@Excel(name = "患者头像", width = 15)
    @ApiModelProperty(value = "患者头像")
    private String headImg;
	/**患者姓名拼音*/
	@Excel(name = "患者姓名拼音", width = 15)
    @ApiModelProperty(value = "患者姓名拼音")
    private String pyinShort;
	/**患者首字母*/
	@Excel(name = "患者首字母", width = 15)
    @ApiModelProperty(value = "患者首字母")
    private String firstChar;
	/**关系 1本人 2子女 3父母 4夫妻*/
	@Excel(name = "关系 1本人 2子女 3父母 4夫妻", width = 15)
    @ApiModelProperty(value = "关系 1本人 2子女 3父母 4夫妻")
    private Integer relation;
	/**性别 1男 2女 0未知*/
	@Excel(name = "性别 1男 2女 0未知", width = 15)
    @ApiModelProperty(value = "性别 1男 2女 0未知")
    private Integer sex;
    /**身份证号*/
    @Excel(name = "身份证号", width = 15, format = "yyyy-MM-dd")
    @ApiModelProperty(value = "身份证号")
    private String idCard;
	/**生日*/
	@Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
    private Date birthday;
	/**身高*/
	@Excel(name = "身高", width = 15)
    @ApiModelProperty(value = "身高")
    private String height;
	/**体重*/
	@Excel(name = "体重", width = 15)
    @ApiModelProperty(value = "体重")
    private String weight;
	/**省份*/
	@Excel(name = "省份", width = 15)
    @ApiModelProperty(value = "省份")
    private Integer provinceId;
	/**城市*/
	@Excel(name = "城市", width = 15)
    @ApiModelProperty(value = "城市")
    private Integer cityId;
	/**过往病史*/
	@Excel(name = "过往病史", width = 15)
    @ApiModelProperty(value = "过往病史")
    private String history;
	/**过敏史*/
	@Excel(name = "过敏史", width = 15)
    @ApiModelProperty(value = "过敏史")
    private String allergy;
    /**挂号性质*/
    @Excel(name = "挂号性质", width = 15)
    @ApiModelProperty(value = "挂号性质")
    private String registerNature;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
